package com.nenude.corejava.ch9.homework;
import java.util.Scanner;
public class TestCountE {
	public static void main(String[] args) {
		System.out.println("输入字符串：");
		Scanner scanner = new Scanner(System.in);
		String str = scanner.nextLine();
		int Counter = 0;
		for (int i = 0; i < str.length(); i++) {
			//索引
			if (str.charAt(i)=='e') {
            Counter++;
			}
		}
		System.out.println("e出现的次数为：  "+Counter);

	}

}
